<?php
use Sonkwl\xphp\Jwtter;
use Sonkwl\xphp\Starter;
use Sonkwl\xphp\Configer;
class jwt{
	//* 获得token
	//* jwt_set
	public static function post_set(){
		$token=Jwtter::setToken($_POST["id"]);
		Starter::response("OK","",[
			"token"=>$token
		]);
	}
	//* 验证token
	//* jwt_get
	public static function post_get(){
		Starter::response("OK","",[
			"id"=>Configer::get("user_id")
		]);
	}
}
?>